package org.meruvian.yama.form;

import java.util.Date;

import org.meruvian.yama.entity.Person;
import org.meruvian.yama.entity.User;

/**
*
* @author vick
*/
public class UserForm {
	
	public User user = new User();
	
	public UserForm(){
		
	}
	public UserForm(User user){
		this.user = user;
	}
	
	public void setUser(User user){
        this.user = user;
    }
	
	public User getUser(){
        return user;
    }
	
	public String getId() {
		return user.getId();
	}

	public void setId(String id) {
		user.setId(id);
	}

	public String getUsername() {
		return user.getUsername();
	}

	public void setUsername(String username) {
		user.setUsername(username);
	}

	public String getPassword() {
		return user.getPassword();
	}

	public void setPassword(String password) {
		user.setPassword(password);
	}

	public String getSecret() {
		return user.getSecret();
	}

	public void setSecret(String secret) {
		user.setSecret(secret);
	}

	public Person getPerson() {
		return user.getPerson();
	}

	public void setPerson(Person person) {
		user.setPerson(person);
	}
	
	public void setFirstName(String firstName){
		user.getPerson().setFirstName(firstName);
    }
    
    
    public String getFirstName(){
    	return user.getPerson().getFirstName();
    }
    
    public void setLastName(String lastName){
    	user.getPerson().setLastName(lastName);
    }
    
    public String getLastName(){
    	return user.getPerson().getLastName();
    }
    
    public void setGender(Boolean gender){
    	user.getPerson().setGender(gender);
    }
    
    public Boolean getGender(){
    	return user.getPerson().getGender();
    }
    
    public void setBirthDate(Date birthDate){
    	user.getPerson().setBirthDate(birthDate);
    }
    
    public Date getBirthDate(){
    	return user.getPerson().getBirthDate();
    }
    
    public void setAddress(String address){
    	user.getPerson().setAddress(address);
    }
    
    public String getAddress(){
    	return user.getPerson().getAddress();
    }
    
    public void setStatus(String status){
    	user.getPerson().setStatus(status);
    }
    
    public String getStatus(){
    	return user.getPerson().getStatus();
    }
	

}
